<!-- @format -->

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>评论模块</title>
		<link rel="stylesheet" href="../assets/lib/layui/css/layui.css" />
		<link rel="stylesheet" href="../assets/css/link.css" />
	</head>
	<body>
		<div class="layui-card">
			<div class="layui-card-header">评论管理</div>
			<div class="layui-card-body">
				<table class="layui-table">
					<colgroup>
						<col width="50" />
						<col />
						<col />
						<col />
						<col />
						<col />
					</colgroup>
					<thead>
						<tr>
							<th>id</th>
							<th>评论人</th>
							<th>评论内容</th>
							<th>评论时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody class="comm_list"></tbody>
				</table>
			</div>
		</div>
		<!-- 动态生成评论列表模板 -->
		<script type="text/html" id="tb">
			{{each data v}}
			<tr>
				<td>{{v.id}}</td>
				<td>{{v.uname}}</td>
				<td>{{v.content}}</td>
				<td>{{v.cdate | filterTime}}</td>
				<td>
					<button
						type="button"
						class="layui-btn layui-btn layui-btn-xs layui-btn layui-btn-danger del_btn"
						data-id="{{v.id}}"
					>
						删除
					</button>
				</td>
			</tr>
			{{/each}}
		</script>
		<script src="../assets/lib/layui/layui.all.js"></script>
		<script src="../assets/lib/jquery.js"></script>
		<script src="../assets/js/common.js"></script>
		<script src="../assets/lib/template-web.js"></script>
		<script src="../assets/js/comment/comment.js"></script>
	</body>
</html>
